import { FC } from 'react';

import { EditableCellProps } from './interface';

const EditableCell: FC<EditableCellProps> = ({
  editing,
  dataIndex,
  title,
  inputType,
  record,
  index,
  children,
  ...restProps
}) => {
  return <td {...restProps}>{editing ? '编辑' : children}</td>;
};

export default EditableCell;
